package cn.hxlc.tie.demo.modular.ljt.equipment.controller;

import cn.hxlc.tie.demo.modular.ljt.equipment.service.MaterialService_lt;
import cn.hxlc.tie.libs.scanner.annotation.GetResource;
import cn.hxlc.tie.libs.scanner.stereotype.ApiResource;
import cn.hxlc.tie.model.web.response.ResponseData;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ApiResource(name = "包装",path = "/material")
public class MaterialController_lt {

    @Autowired
    private MaterialService_lt materialService;

    @GetResource(name = "获取物料树列表", path="/queryGroupTree",requiredPermission = false)
    @ApiOperation(value = "分组树列表")
    public ResponseData queryGroupTree(){
        System.out.println("分组树列表");
        return ResponseData.success(materialService.queryTree());
    }


}
